import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/Login'
// import Admin from '@/components/Admin'
import User from '@/components/User'
import Container from '@/components/AdminContainer'
import RichEditor from '@/components/RichEditor'
import Consumer from '@/components/Consumer'

Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      name: 'Container',
      component: Container
    },
    {
      path: '/login',
      name: 'Login',
      component: Login
    },
    // {
    //   path: '/admin',
    //   name: 'Admin',
    //   component: Admin
    // },
    {
      path: '/user',
      name: 'User',
      component: User
    },
    {
      path: '/editor',
      name: 'RichEditor',
      component: RichEditor
    },
    {
      path: '/consumer',
      name: 'Consumer',
      component: Consumer
    }
  ]
})
